import request from '@/utils/request'

// 查询产品检验列表
export function listProductCheck(query) {
  return request({
    url: '/mes/productCheck/list',
    method: 'get',
    params: query
  })
}

// 查询产品检验详细
export function getProductCheck(id) {
  return request({
    url: '/mes/productCheck/' + id,
    method: 'get'
  })
}

// 新增产品检验
export function addProductCheck(data) {
  return request({
    url: '/mes/productCheck',
    method: 'post',
    data: data
  })
}

// 修改产品检验
export function updateProductCheck(data) {
  return request({
    url: '/mes/productCheck',
    method: 'put',
    data: data
  })
}

// 删除产品检验
export function delProductCheck(id) {
  return request({
    url: '/mes/productCheck/' + id,
    method: 'delete'
  })
}

// 导出产品检验
export function exportProductCheck(query) {
  return request({
    url: '/mes/productCheck/export',
    method: 'get',
    params: query
  })
}